<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	
	<title>栏目列表</title>
	<hdjs/>
	
</head>
<body>
	<div class="menu_list">
	 <ul>
		 <li>
		 <a href="{|U:'index'}" class="action"> 栏目列表 </a>
		 </li>
		 <li>
		 <a href="{|U:'add'}" > 添加顶级栏目</a>
		 </li>
		 <li>
		 <a href="{|U:'update_cache'}"> 更新栏目缓存 <a/>
		 </li>
	 </ul>
 </div>
	<div>
		<table class='table2'>
			<thead>
				<tr>
					<td class='w50'>CID</td>
					<td>栏目名称</td>
					<td class='w150'>操作</td>
				</tr>
			</thead>
			<list from='$category' name='c'>
				<tr>
					<td>{$c.cid}</td>
					<td>{$c._name}</td>
					<td>
						<a href="{|U:add,array('pid'=>$c['cid'])}">添加子栏目</a>
						<a href="{|U:edit,array('cid'=>$c['cid'])}">编辑</a>
						<a href="javascript:hd_ajax('{|U:del}',{cid:{$c.cid}})" >删除</a>
					</td>
				</tr>
				</list>
		</table>
	</div>
</body>
</html>